package com.aegean.MonitorExamSYS.conduction.action;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.conduction.business.ConductionBusiness;
import com.aegean.MonitorExaxSYS.model.BigType;
import com.opensymphony.xwork2.ActionSupport;

@Controller("ShowBigListForMonitor")
@Scope("prototype")
public class ShowBigListForMonitor extends ActionSupport {
	@Resource
	ConductionBusiness business;
	private List<BigType> bigs=new ArrayList<BigType>();
	private int start;
	private int limit;
    private int total;
    
	public List<BigType> getBigs() {
		return bigs;
	}

	public void setBigs(List<BigType> bigs) {
		this.bigs = bigs;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		total=business.bigListCount();
		bigs=business.bigList(start, limit);
		return SUCCESS;
	}
}
